
import store from "@/store";
let fbillList = [
    { text: '自由', value: 1 },
    { text: '审批通过', value: 2 },
    { text: '冻结', value: 3 },
    { text: '关闭', value: 4 },
    { text: '审批中', value: 7 },
    { text: '审批不通过', value: 8 },
    { text: '失效', value: 5 },]

let OrgList =
    JSON.parse(localStorage.getItem("NcOrgOrgs")) ||
    store.state.NcBasicInfo.OrgOrgs

export function fbillflagList(value) {

    let obj = fbillList.find(item => item.value === value)
    if (obj) {
        return obj.text
    } else {
        return '--'
    }
}

export function OrgOrgsList(value) {
    let obj = OrgList.find(item => item.pk_org === value)
    if (obj) {
        return obj.name
    } else {
        return '--'
    }
}
